package com.ty.service.${src}.impl;
<#if priKeys??>

import java.util.List;

</#if>
<#if priKeys??>
import org.springframework.beans.factory.annotation.Autowired;
</#if>

import com.alibaba.dubbo.config.annotation.Service;
import com.ty.model.${src}.${entity};
import com.ty.service.base.BaseServiceImpl;
import com.ty.service.${src}.I${entity}Service;

@Service
public class ${entity}ServiceImpl extends BaseServiceImpl<${entity}, <#if priKeys??>List<${priType}><#else>${priKey.javaType}</#if>> implements I${entity}Service {

	/**
	 * serialVersionUID : 
	 */ 
	private static final long serialVersionUID = -1L;
<#if priKeys??>
	
	@Autowired
	private ${entity}Mapper ${entity?uncap_first}Mapper;

	@Override
	public void deleteById(<#list priKeys as p>${p.javaType} ${p.property}<#if p_index != (priKeys?size - 1)>, </#if></#list>) {
		this.${entity?uncap_first}Mapper.deleteById(<#list priKeys as p>${p.property}<#if p_index != (priKeys?size - 1)>, </#if></#list>);
	}

	@Override
	public ${entity} getById(<#list priKeys as p>${p.javaType} ${p.property}<#if p_index != (priKeys?size - 1)>, </#if></#list>) {
		return this.${entity?uncap_first}Mapper.getById(<#list priKeys as p>${p.property}<#if p_index != (priKeys?size - 1)>, </#if></#list>);
	}
</#if>

}
